<?php defined('LFNC_VERSION') or die('forbidden');


/**
* MLT Web Engine
* http://www.molotsoft.ru
*
* @package MLT_WE
* @subpackage Lucky_Funcs
* @author Ivan Chistyakov <ivan@molotsoft.ru>
* @version $Id: simple_mail.lfnc.php 171 2009-03-11 06:04:07Z molotsoft@gmail.com $
* @link $HeadURL: http://lucky-funcs.googlecode.com/svn/trunk/funcs/mail/simple_mail.lfnc.php $
*/


function simple_mail($from, $to, $subject, $message, $content_type = 'text/plain', $charset = 'utf-8') {
	$headers = 'MIME-Version: 1.0' . CRLF;
	$headers .= 'Content-Type: ' . $content_type . '; charset=' . $charset . CRLF;
	$headers .= 'From: ' . $from . CRLF;
	$headers .= 'To: ' . $to . CRLF;
	return mail($to, mime_word_encode($subject, $charset), trim($message), $headers);
}


?>